home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
hity wydania
/
Bank smakow
/
BankSmakow.air
/
BankSmakow.swf
/
scripts
/
com
/
makingwaves
/
controller
/
Controller.as
Wrap
Text File
|
2009-12-16
|
2KB
|
40 lines
package com.makingwaves.controller
{
import com.adobe.cairngorm.control.FrontController;
import com.makingwaves.commands.LoadDataCommand;
import com.makingwaves.commands.LoadLocalDataCommand;
import com.makingwaves.commands.ResetProductsCommand;
import com.makingwaves.commands.SelectAllCommand;
import com.makingwaves.commands.SelectNewCommand;
import com.makingwaves.commands.SelectProductCommand;
import com.makingwaves.events.LoadDataEvent;
import com.makingwaves.events.LoadLocalDataEvent;
import com.makingwaves.events.ResetProductsEvent;
import com.makingwaves.events.SelectAllEvent;
import com.makingwaves.events.SelectNewEvent;
import com.makingwaves.events.SelectProductEvent;
public class Controller extends FrontController
{
private static var UUID:String = "bd346566-4e58-441a-9a2a-08d3d56cc480";
public function Controller()
{
super();
initialiseCommands();
}
private function initialiseCommands() : void
{
addCommand(SelectProductEvent.EVENT_NAME,SelectProductCommand);
addCommand(LoadDataEvent.EVENT_NAME,LoadDataCommand);
addCommand(LoadLocalDataEvent.EVENT_NAME,LoadLocalDataCommand);
addCommand(ResetProductsEvent.EVENT_NAME,ResetProductsCommand);
addCommand(SelectNewEvent.EVENT_NAME,SelectNewCommand);
addCommand(SelectAllEvent.EVENT_NAME,SelectAllCommand);
}
}
}